package com.smart4j.framework.aop.spring.advisor;

import org.springframework.stereotype.Component;

import com.smart4j.framework.aop.spring.aspect.Tag;
import com.smart4j.framework.aop.spring.four.Greeting;

/**
 * description: Spring AOP  切面：advisor . 切面封装了 切点 Pointcut 和 增强 advice 
 * @version v1.0
 * @author w
 * @date 2018年9月23日下午10:57:48
 */
@Component
public class GreetingAdvisorImpl implements Greeting {

	@Override
	public void sayHi(String name) {
		System.out.println(name+" : say  hi ... --->"+GreetingAdvisorImpl.class.getName());
	}
	
	public void goodMorning(String name){
		System.out.println( name+ " say good morning");
	}
	
	@Tag
	public void goodNight(String name){
		System.out.println( name+ " say good night");
	}

}
